﻿function setOpacity(obj,opac) {
  obj.opacity = (255/100)*parseInt(opac);
}